import request from '@util/request'

/**
 * 获取授权链接
 * @param param
 * @returns {*}
 */
export const getAuthUrl = () => {
    return request.get(`api/wechat/authorizeUrl`)
}
/**
 * 通过Email获取token
 * @param param
 * @returns {*}
 */
export const getToken = (param) => {
    return request.get(`api/wechat/oauth/token`, param)
}
/**
 * 获取用户信息
 * @param param
 * @returns {*}
 */
export const getUserInfo = () => {
    return request.get(`api/wechat/getUserInfo`)
}
/**
 * 获取签名
 * @param param
 * @returns {*}
 */
export const getsignature = () => {
    return request.post(`api/wechat/getsignature`)
}
/**
 * 获取模拟人
 * @param param
 * @returns {*}
 */
export const getTmpMock = (email) => {
    return request.get(`api/data/bu/map?email=${email}`)
}
/**
 * 获取模拟人——mr
 * @param param
 * @returns {*}
 */
export const getTmpMockMr = (email) => {
    return request.get(`api/data/mr/map?email=${email}`)
}
